<template>
  <view>
    <view v-html="data"> </view>
  </view>
</template>

<script>
import { getAgreementContent } from "@/api/reg/index";

export default {
  data () {
    return {
      data: '',
    }
  },
  onLoad (e) {
    uni.setNavigationBarTitle({ title: e.title })
    getAgreementContent(e.id).then(res => {
      if (res.code === 200) {
        this.data = res.data.replace(/\\/g, "")
      }
    })
  },
}
</script>

<style lang="scss" scoped>
view {
  padding: 20rpx 20rpx 40rpx;
}
</style>
